<template>
    <view class="panel !pb-1">
        <view class="text-lg text-yellow-600">{{ is_ysf == 1 ? '房屋按揭' : item.loan_name }}</view>
        <view class="items-center flex flex-col">
            <u-image radius="50%" :src="$imgBase + item.sales_avatar" width="50" height="50"></u-image>
            <view class="text-lg text-yellow-600" :class="item.apply_status">{{ item.apply_status_text
                }}</view>
        </view>
        <view class="py-1 flex mb-3">
            <view class="mr-2">业&nbsp; 务&nbsp; 员：</view>
            <view>{{ item.salesman_name }}</view>
        </view>
        <view class="py-1 flex mb-3">
            <view class="mr-2">申请金额：</view>
            <view>{{ item.loan_amount }}万元</view>
        </view>
        <view class="py-1 flex mb-3">
            <view class="mr-2">申请时间：</view>
            <view>{{ item.created_at }}</view>
        </view>
        <navigator :url="toUrl">
            <view class="border-t  border-gray-100 py-2 flex justify-between">
                <view>详细信息</view>
                <u-icon name="arrow-right"></u-icon>
            </view>
        </navigator>
    </view>
</template>
<script setup lang="ts">
defineProps<{ item: any, is_ysf: number, toUrl: string }>()
</script>
